package com.photoeditor.demo.model.bean.face;

import android.os.Parcel;
import android.os.Parcelable;

import com.photoeditor.demo.util.face.FaceUtil;

/**
 * Created by @author winn on 2018/10/31.
 */

public class BaseFaceResultBean implements Parcelable {
    /**
     * svip使用
     */
    public static final int REPORT_TYPE_FACE_AGING = FaceUtil.DETECT_FACE_TYPE_FACE_AGING;
    public static final int REPORT_TYPE_EXOTIC          = FaceUtil.DETECT_FACE_TYPE_EXOTIC;
    public static final int REPORT_TYPE_GENDER_SWITCH   = FaceUtil.DETECT_FACE_TYPE_GENDER_SWITCH;
    public static final int REPORT_TYPE_PAST_LIFE   = FaceUtil.DETECT_FACE_TYPE_PAST_LIFE;
    public static final int REPORT_TYPE_BABYPREDICT = FaceUtil.DETECT_FACE_TYPE_BABY_PREDICTION;
    /** 年龄预测type **/
//    public static final int REPORT_TYPE_AGING_SCANNER   = 15;


    private int mType;

    private boolean mIsSecondRequest;

    public BaseFaceResultBean(int type) {
        mType = type;
    }

    public int getType() {
        return mType;
    }

    public void setType(int type) {
        mType = type;
    }

    public boolean isSecondRequest() {
        return mIsSecondRequest;
    }

    public void setIsSecondRequest(boolean isSecondRequest) {
        this.mIsSecondRequest = isSecondRequest;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.mType);
    }

    protected BaseFaceResultBean(Parcel in) {
        this.mType = in.readInt();
    }

    public static final Creator<BaseFaceResultBean> CREATOR = new Creator<BaseFaceResultBean>() {
        @Override
        public BaseFaceResultBean createFromParcel(Parcel source) {
            return new BaseFaceResultBean(source);
        }

        @Override
        public BaseFaceResultBean[] newArray(int size) {
            return new BaseFaceResultBean[size];
        }
    };
}
